package cn.fr4nk;

import java.io.BufferedReader;
import java.io.FileReader;

public class FileUtil {
	
	public  static String  read(String fileName) {
		FileReader fileReader = null;
		BufferedReader bufferReader = null;
		StringBuilder sb = new StringBuilder();
		try {
			fileReader = new FileReader(fileName);
			bufferReader = new BufferedReader(fileReader);
			String line = "";
			while ( (line = bufferReader.readLine()) != null) {
				sb.append(line + '\n');
			}
			
		}catch (Exception e)  {
			
		}
		return sb.toString();
	}

}
